package com.yyh.javase1;

public class Test1 {
    public static void main(String[] args) {
        //Integer num1 = new Integer(10);
        /*//将包装类转为基本数据类型
        int a = num1;
        System.out.println("a = " + a);
        int b = num1.intValue();
        System.out.println("b = " + b);
        //将基本数据类型转为包装类
        int num2 = 20;
        Integer c = num2;
        System.out.println("c = " + c);
        Integer e = new Integer(num2);
        System.out.println("e = " + e);
        Integer d = Integer.valueOf(num2);
        System.out.println("d = " + d);*/
        int num1 = 100;
        String result = num1 + "";
        /*System.out.println("result = " + result);*/
        Integer num2 = num1;
        String s = num2.toString();
        System.out.println("s = " + s);
        s+="abc";
        System.out.println("s = " + s);
        String str = "123";
        int num3 = Integer.parseInt(str);
        System.out.println("num3 = " + num3);
    }
}
